﻿using nplJobsCommon.Common;
using nplJobsDAL.Select;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace nplJobsBLL.Common
{
    public class ProcessSelectCity
    {
        public List<City> City { get; set; }
        public int countryID = 0;
        public int DistrictID { get; set; }

        public void invoke()
        {
            SelectCity city = new SelectCity();
            city.CountryID = this.countryID;
            this.City = city.GetCity();
        }

        public void GetCityByDistrict()
        {
            SelectCity city = new SelectCity();
            city.DistrictID = this.DistrictID;
            this.City = city.GetCityByDistrict();
        }

        public static List<City> GetList(City cityObj, string strMode)
        {
            return new nplJobsDAL.Common.CityDAL().GetList(cityObj, strMode);
        }
    }
}
